﻿using Common;
using MongoDB.Bson;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AnesSystem.Models
{
    public class ConfigConsumablesModel : ObservableObject
    {
        private ObjectId _id;
        private string name;
        private string code;
        private string price;
        private string count;
        private int col;
        private int row;
        private bool deleted;
        private string index;

        public ObjectId Id
        {
            get
            {
                return _id;
            }

            set
            {
                _id = value;
                RaisePropertyChanged("Id");
            }
        }

        public string Price
        {
            get
            {
                return price;
            }

            set
            {
                price = value;
                RaisePropertyChanged("Price");
            }
        }

        public string Count
        {
            get
            {
                return count;
            }

            set
            {
                count = value;
                RaisePropertyChanged("Count");
            }
        }

        public int Col
        {
            get
            {
                return col;
            }

            set
            {
                col = value;
                RaisePropertyChanged("Col");
            }
        }

        public int Row
        {
            get
            {
                return row;
            }

            set
            {
                row = value;
                RaisePropertyChanged("Row");
            }
        }

        public bool Deleted
        {
            get
            {
                return deleted;
            }

            set
            {
                deleted = value;
                RaisePropertyChanged("Deleted");
            }
        }

        public string Name
        {
            get
            {
                return name;
            }

            set
            {
                name = value;
                RaisePropertyChanged("Name");
            }
        }

        public string Code
        {
            get
            {
                return code;
            }

            set
            {
                code = value;
                RaisePropertyChanged("Code");
            }
        }

        public string Index
        {
            get
            {
                return index;
            }

            set
            {
                index = value;
                RaisePropertyChanged("Index");
            }
        }
    }
}
